/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proxy;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

public class HttpAuthenticateProxy extends Authenticator {
  
    String Login;
    String mdp;
 
      public HttpAuthenticateProxy(String Login,  String mdp){
            this.mdp=mdp;
            this.Login=Login;
      }
           @Override
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(Login,mdp.toCharArray());
    }
}
